package day0220;

public class Animal {

    private String name;

    public void say() {
        System.out.println("叫");
    }

}

class Dog extends Animal {

    @Override
    public void say() {
        System.out.println("汪 汪 汪");
    }

    public void look() {
        System.out.println("看家护院");
    }

}

class Cat extends Animal {

    public void say() {
        System.out.println("喵 喵 喵");
    }

    public void catchMouse(){
        System.out.println("抓老鼠");
    }
}